﻿using YourLastOptionsDialog.Controls;

namespace SampleApplication.OptionsModels
{
    public class CustomValidator : IValidator
    {
        #region Implementation of IValidator

        public ValidationResult Validate(string input)
        {
            if (input.ToLower() == input)
            {
                return ValidationResult.Success;
            }

            return new ValidationResult(false, "Only lower case characters are allowed.");
        }

        #endregion
    }
}
